package com.wsd.smartcarwasher.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
    * 充值表
    */
@ApiModel(value="com-wsd-smartcarwasher-domain-TCharge")
@Data
@TableName(value = "smartcarwasher.t_charge")
public class TCharge implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 充值名称
     */
    @TableField(value = "charge_name")
    @ApiModelProperty(value="充值名称")
    private String chargeName;

    /**
     * 需要充值的实际金额
     */
    @TableField(value = "charge_price")
    @ApiModelProperty(value="需要充值的实际金额")
    private BigDecimal chargePrice;

    /**
     * 赠送的金额
     */
    @TableField(value = "charge_giving")
    @ApiModelProperty(value="赠送的金额")
    private BigDecimal chargeGiving;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 1 正常  0 禁用
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="1 正常  0 禁用")
    private Integer status;

    private static final long serialVersionUID = 1L;
}